-
Notifications
You must be signed in to change notification settings - Fork 20
cda-37 Store blobs in object-store #1519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
|
still lots to cleanup and reorganize |
MikeNeilson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable so far.
4da44e9 to
d02ccfe
Compare
…nd Content-Length headers instead.
…reManagerProvider.
|
I think I've implemented all the blob parts. Would need to follow up with a similar clob dao that handles text encoding. |
MikeNeilson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good. A few nitpicks and probably at least one just misunderstanding of togglz on my part I need clarified.
| private BlobAccess chooseBlobAccess(DSLContext dsl) { | ||
| boolean useObjectStore = isObjectStorageEnabled(); | ||
| try { | ||
| // Prefer Togglz if available |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why wouldn't it be available?
| return new BlobDao(dsl); | ||
| } | ||
|
|
||
| private boolean isObjectStorageEnabled() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this just use the CdaFeatures thing?
| .assertThat() | ||
| .statusCode(is(HttpServletResponse.SC_OK)) | ||
| .header("Transfer-Encoding", equalTo("chunked")) | ||
| // .header("Transfer-Encoding", equalTo("chunked")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove or uncomment
| } | ||
| } | ||
|
|
||
| private static void setupMinioResources() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- This should just be in the Cda Setup extension and can just be started whenever, eventually it'll be the only option and it doesn't really get in the way just being on.
- https://testcontainers.com/modules/minio/ (favor the testcontainer helper modules unless you have reason not to, we do our own for CWMS to make the CWMS setup easier to handle.)
No description provided.